<template>
	<!-- 搜索栏提取组件 -->
  <view class="content">
    <cu-custom bgColor="bg-gradual-blue" :isBack="true">
    	<block slot="backText">返回</block>
    	<block slot="content">吾聘</block>
    </cu-custom>
    <!-- 搜索框 -->
    <search></search>
    
    <!-- banner图 -->
    <banner></banner>
    
    <!-- 列表(只能推荐) -->
    <list v-bind:url="'/pages/detail/detail?id='+id"></list>
    
    <!-- 列表筛选导航 -->
    <filter-nav></filter-nav>
    
    <list></list>
    <list></list>
    <list></list>
    <list></list>
    <list></list>
    <list></list>

  </view>
</template>

<script>  
  import search from "@/components/search/search.vue";
  import banner from "@/components/banner/banner.vue";
  import list from "@/components/list/list.vue";
  import filterNav from '@/components/filterNav/filterNav.vue';
  import login from '@/api/login.js'
  export default {
    data() {
      return {
        id: 0,
      }
    },
    onLoad() {
    },
    async onShow(){
      console.log(this);
      let res = await login.getLogin();
      console.log("res===",res);
    },
    methods: {
      
    },
    
    components: {
      search,
      banner,
      list,
      filterNav,
    }
  }
</script>

<style>
  .content {
    height: 400upx;
  }

  .search {
    display: flex;
    justify-content: space-between;
  }
</style>
